﻿using System;
using UnityEngine;

// Token: 0x02000285 RID: 645
public class MirrorSet : MonoBehaviour
{
	// Token: 0x060010BA RID: 4282 RVA: 0x0006A544 File Offset: 0x00068744
	private void Awake()
	{
		this.ShowMirror(ConfigData.showMirror);
	}

	// Token: 0x060010BB RID: 4283 RVA: 0x0006A554 File Offset: 0x00068754
	private void Update()
	{
		if (this.show != ConfigData.showMirror)
		{
			this.ShowMirror(ConfigData.showMirror);
		}
	}

	// Token: 0x060010BC RID: 4284 RVA: 0x0006A574 File Offset: 0x00068774
	public void ShowMirror(bool flag)
	{
		this.show = flag;
		this.mirror.enabled = this.show;
		this.dummy.enabled = !this.show;
	}

	// Token: 0x040011DE RID: 4574
	[SerializeField]
	private Renderer mirror;

	// Token: 0x040011DF RID: 4575
	[SerializeField]
	private Renderer dummy;

	// Token: 0x040011E0 RID: 4576
	private bool show = true;
}
